package com.leinao.media.common.param;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 录像回放参数
 *
 * @author zhangyu
 * @date 2021/12/3 10:02
 */
public class VideoPlayBackParam extends BaseDeviceParam {

    /**
     * 相机ID
     */
    private String id;

    /**
     * 通道号
     */
    private String channel;

    /**
     * 开始时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "VideoPlayBackParam{" +
                "id='" + id + '\'' +
                ", channel='" + channel + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }

}
